package com.codeoss.framework.view.parser;

import org.springframework.stereotype.Service;

import com.codeoss.framework.view.component.Col;
import com.codeoss.framework.view.component.Component;
import com.fasterxml.jackson.databind.node.ObjectNode;

@Service
public class ColParser extends AbstractComponentParser {
	protected void setAttributes(IParseContext parseContext, ObjectNode objectNode, Component component) {
		super.setAttributes(parseContext, objectNode, component);
		Col col = (Col) component;
		int cols= objectNode.get("col").asInt();
		col.setCol(cols);
	}

	@Override
	protected Component createComponent(IParseContext parseContext, ObjectNode objectNode) {
		// TODO Auto-generated method stub
		return new Col();
	}

}
